const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 在根级的getters上 开发子模块的属性给别人看 给别人用
  name: state => state.user.userInfo.username, // 取定义的userInfo对象,数据返回来的里面的username
  userId: state => state.user.userInfo.userId, // 取定义的userInfo对象,数据返回来的里面的userId
  staffPhoto: state => state.user.userInfo.staffPhoto // 建立用户头像的映射
}
export default getters
